<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>离职员工评价管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			$("#inputForm").validate({
				submitHandler: function(form){
					loading('正在提交，请稍等...');
					form.submit();
				},
				errorContainer: "#messageBox",
				errorPlacement: function(error, element) {
					$("#messageBox").text("输入有误，请先更正。");
					if (element.is(":checkbox")||element.is(":radio")){
						error.appendTo(element.parent().parent());
					} else {
						error.insertAfter(element);
					}
				}
			});
			$("#comment").css("height", "300px");
		});
	</script>
</head>
<body>
	
	<form:form id="inputForm" class="form-input" modelAttribute="storeEmployeeLeftComment" action="${ctx}/employee/storeEmployeeLeftComment/save" method="post">
		<form:hidden path="id"/>
		<div class="icon-buttons">
			<a data-role="button" data-inline="true" data-icon="back" data-iconpos="notext"  href="${ctx}/employee/storeEmployeeLeftComment/">返回</a>
			<input id="btnSubmit" type="submit" value="保 存" data-icon="check" data-iconpos="notext"  data-inline="true"/>
		</div>
		<tags:message content="${message}"/>
		<div data-role="fieldcontain">
			<label for="employee.id">选择离职员工:</label>
			<form:select path="employee.id" data-native-menu="false" items="${employeeMap}"></form:select>
		</div>
		<div data-role="fieldcontain">
			<label for="comment">评价:</label>
			<textarea id="comment" name="comment" maxlength="1024" htmlEscape="false" class="required"/></textarea>
		</div>
	</form:form>
</body>
</html>
